// main.ts
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import ElementPlus from 'element-plus';
import axiosInstance from './utils/axios';
import 'element-plus/dist/index.css';

const app = createApp(App);

// 将 axios 实例挂载到全局（在组件中即可通过 getCurrentInstance().appContext.config.globalProperties.$axios 使用）
app.config.globalProperties.$axios = axiosInstance;

app.use(router);
app.use(ElementPlus);
app.mount('#app');
